﻿using System;

namespace Facade
{
    class Program
    {
        static void Main(string[] args)
        {
            FileReader reader = new FileReader();
            String plainText = reader.read("D:\\大四上\\地理信息系统设计与开发\\6 外观模式\\111.txt");
            CipherMachine cipher = new CipherMachine();
            String encryptText = cipher.encrypt(plainText);
            FileWriter writer = new FileWriter();
            writer.write(encryptText, "D:\\大四上\\地理信息系统设计与开发\\6 外观模式\\222.txt");
        }
    }
}
